﻿namespace ConditionTreeTestStand.Nodes
{
  public class OperatorViewModel
  {
    private readonly NodeViewModel _owner;

    public Operator Operator { get; private set; }
    public string Name { get { return Operator.Name; } }
    public string Symbol { get { return Operator.Symbol; } }
    public OperatorViewModel(NodeViewModel owner, Operator @operator)
    {
      _owner = owner;
      Operator = @operator;
    }
    public void Select()
    {
      _owner.Operator = Operator;
    }
  }
}